package com.github.cyf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.cyf.entity.ActResultLog;
import org.apache.ibatis.annotations.Insert;
import java.util.List;

/**
 * @author chenyifan
 * @create 2024-04-05 18:06
 */
public interface ActResultLogMapper extends BaseMapper<ActResultLog> {

    @Insert(" <script> " +
            " INSERT INTO act_result_log2 " +
            " (onlineseqid,businessid,becifno,ivisresult,createdby,createddate,updateby,updateddate,risklevel) " +
            " VALUES " +
            " <foreach collection = 'list' item='item' index='index' separator=','> " +
            " (#{item.onlineseqid},#{item.businessid},#{item.becifno},#{item.ivisresult},#{item.createdby}," +
            "  #{item.createddate},#{item.updateby},#{item.updateddate},#{item.risklevel}) " +
            " </foreach> " +
            " </script> ")
    void executeInsert(List<ActResultLog> list);
}
